import { useState } from 'react';
import {Search } from 'react-vant'; // 假设你使用的是 react-vant 组件库

const Navbar = () => {
    const [value, setValue] = useState('');
    return (
        <Search
            shape="round"
            background="rgb(56, 0, 179)"
            value={value}
            onChange={setValue}
            placeholder="请输入搜索关键词"
        />
    );
};

export default Navbar;